
<div id="main-content"> <!-- Main Content Section with everything -->			
	<!-- Page Head -->						
	<div class="clear"></div> <!-- End .clear -->
	
	<div class="content-box"><!-- Start Content Box -->
		
		<div class="content-box-header">
			
			<h3><?php echo $query?'修改':'新建'?>实体绘本</h3>					
			<div class="clear"></div>
			
		</div> <!-- End .content-box-header -->
		
		<div class="content-box-content">
			
			<div >
			
				<form action="<?php echo base_url()?>entity_books/execute" method="post">
						<input type='hidden' name='id' value='<?php echo $query?$query['id']:''?>'>						
						<p>
							<label>绘本名称:</label>
								<input class="text-input small-input" type="text" id="small-input" name="title" value='<?php echo $query?$query['title']:''?>' /> 
								<!--<span class="input-notification success png_bg">Successful message</span> <!-- Classes for input-notification: success, error, information, attention -->
						</p>
						<p>
							<label>ISBN：</label>
							<input class="text-input small-input" type="text" name="isbn" value='<?php echo $query?$query['isbn']:''?>' /> 										
						</p>
						<p>
							<label>价格：</label>
							<input class="text-input small-input" type="text" name="price" value='<?php echo $query?$query['price']:''?>' /> 										
						</p>
						<p>
							<label>购入时间：</label>
							<input id="datepicker" class="text-input small-input" type="text" name="bought" value='<?php echo $query?date('Y-m-d',$query['bought']):''?>' /> 										
						</p>
						<p>
							<label>出版社:</label>
							<select name="pid">
								<option value="" <?php echo $query?'':'selected';?>>————出版社————</option>
								<?php foreach(publishers_options() as $row):?>
								<option value='<?php echo $row['id']?>' <?php echo ($query&&$query['pid']==$row['id'])?'selected':''?>><?php echo $row['publishername']?></option>
								<?php endforeach;?>
							</select>
						</p>								
						<p>
							<input class="button" type="submit" value="Submit" />
							<input class="button back" type="button" value="Back" />
						</p>							
					<div class="clear"></div><!-- End .clear -->
					
				</form>						
			</div>					
		</div> <!-- End .content-box-content -->
		
	</div> <!-- End .content-box -->
	<div class="clear"></div>			
</div> <!-- End #main-content -->	
<script>
	$(function() {
		$( "#datepicker" ).datepicker({dateFormat:'yy-mm-dd'});
	});
</script>